<?php
$server = new swoole_server('0.0.0.0',3333);

$server->set([
    'open_eof_split' => true,
    'package_eof' => "\r\n",
]);

$server->on('connect', function (\Swoole\Server $ser, $fd) {
    //获取服务器状态
    //var_dump($ser->stats());

});
$server->on('receive',function(\Swoole\Server $serv,$fd,$reactor_id,$data){
    echo 'login....'.PHP_EOL;
});
$server->start();